public class Frog implements IAmphibious{
    //因为IAmphibious继承了IRunning,ISwimming接口，现在Frog类又实现了IAmphibious接口。所以相当于Frog类实现了IRunning,ISwimmimg接口
    //所以Frog类要重写IRunning,ISwimming中的抽象方法
    //这就是接口与接口可以多继承
    public String name;
    public Frog(String name){
        this.name=name;
    }
    @Override
    public void run() {
        System.out.println(this.name+"用腿在跑步");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"用腿在游泳");
    }
}
